<%--
  Created by IntelliJ IDEA.
  User: caoyuncang
  Date: 2019/7/11
  Time: 16:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>分类浏览网上书店My-eBookStore</title>
    <link rel="shortcut icon" href="http://www.sdust.edu.cn/images/favicon.ico" mce_href="images/favicon.ico" type="image/x-icon">
    <link rel="icon" href="http://www.sdust.edu.cn/images/favicon.ico" mce_href="images/favicon.ico" type="image/x-icon">
    <style type="text/css">
        a {
            text-decoration: none;
            color: darkslateblue;
        }
        a:hover{
            text-decoration: none;
            color: white;
        }
    </style>
    <style>
        body {margin:0;}

        ul2 {
            list-style-type: none;
            margin: 0;
            padding: 0;
            overflow: hidden;
            background-color: #333333;
            top: 0;
            width: 100%;
        }

        li2 {
            float: left;
            border-right: 1px solid #bbb;
        }

        li2 a {
            display: block;
            color: #111111;
            background-color: #FF4500;
            text-align: center;
            padding: 15px 40px;
            text-decoration: none;
        }
        li2 a:hover {
            background-color: #FF7F50;
            color:white;
        }

        li2 a:hover:not(.active1) {
            background-color: #FF7F50;
        }

        .active2 {
            background-color:#FF7F50 ;

        }

    </style>
</head>
<body>
<ul2>
    <%
        String kind = request.getParameter("kind");
        if("计算机".equals(kind)){
            out.print("<li2><a class=\"active2\" href=\"main.jsp?id=0&kind=计算机\" >计算机类</a></li2>");
        }else{
            out.print("<li2><a  href=\"main.jsp?id=0&kind=计算机\" >计算机类</a></li2>");
        }
        if("英语".equals(kind)){
            out.print("<li2><a class=\"active2\" href=\"main.jsp?id=0&kind=英语\" >英语类</a></li2>");
        }else{
            out.print("<li2><a  href=\"main.jsp?id=0&kind=英语\" >英语类</a></li2>");
        }
        if("其他".equals(kind)){
            out.print("<li2><a class=\"active2\" href=\"main.jsp?id=0&kind=其他\" >其他类</a></li2>");
        }else{
            out.print("<li2><a  href=\"main.jsp?id=0&kind=其他\" >其他类</a></li2>");
        }
    %>
    <li2 style="float: right"><jsp:include page="search.jsp"></jsp:include> </li2>
</ul2>

</body>
</html>
